﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Contoso.Workflow.LocalService;
using Contoso.Workflow.Model;

public partial class UserControl_ExpenseFormExpenseDetail : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DBAccess dbAccess = new DBAccess();
        ExpenseData dbExpenseData = dbAccess.GetExpenseDataByInstanceID(expenseData.InstanceID);

        lblUser.Text = dbExpenseData.User;
        lblAccount.Text = dbExpenseData.Account.ToString();
        lblReason.Text = dbExpenseData.Reason;
        lblPMSuggestion.Text = dbExpenseData.PMSuggestion;
        lblGMSuggestion.Text = dbExpenseData.GMSuggestion;
    }

    private ExpenseData expenseData;
    public ExpenseData UCExpenseData
    {
        get { return expenseData; }
        set { expenseData = value; }
    }
}
